package com.example.boot.rtshop.dao;

import java.util.List;

import com.example.boot.rtshop.model.RtShop;

public interface RtShopDao {
	int deleteByPrimaryKey(String id);

	int insert(RtShop record);

	int insertSelective(RtShop record);

	RtShop selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(RtShop record);

	int updateByPrimaryKey(RtShop record);

	/**
	 * 查找所有店铺
	 * @return
	 * @throws Exception
	 */
	List<RtShop> findByAllShop() throws Exception;

	/**
	 * 根据桌子Id查找商店
	 * 
	 * @param tableId
	 * @return
	 * @throws Exception
	 */
	public RtShop byTableIdFindShop(String tableId) throws Exception;
}